package com.voicenews.activity;

import com.voicenews.R;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;

public class WebViewActivity extends DashBoardActivity {
	private WebView webView;
	String url = null;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.web_view);
		setHeader(getIntent().getStringExtra("title"), true, true, false, false);

		Intent intent = getIntent();
		if (intent != null) {
			url = intent.getExtras().getString("url");
		}
		webView = (WebView) findViewById(R.id.webView);
		webView.getSettings().setJavaScriptEnabled(true);
		webView.loadUrl(url);

	}
}
